import assessCheckApi from './api'
import { axios } from '@/utils/request'

// 流程列表-分页查询
export function list(params){
    return axios({
        url: assessCheckApi.list,
        method:'get',
        params:{...params},
        url_2:'outside',
    })
}
// 流程列表-分页查询
export function initBzFlow(data){
    return axios({
        url: assessCheckApi.initBzFlow,
        method:'post',
        data:{...data},
        url_2:'outside',
    })
}
// 内控-报销申请流程保存接口
export function saveFlow(data){
    return axios({
        url: assessCheckApi.saveFlow,
        method:'post',
        data:{...data},
        url_2:'outside',
    })
}
// 内控-报销申请流程提交接口
export function submitFlow(data){
    return axios({
        url: assessCheckApi.submitFlow,
        method:'post',
        data:{...data},
        url_2:'outside',
    })
}
// 删除预算调配申请
export function deleteLgqsFlowJob(params){
    return axios({
        url: assessCheckApi.deleteLgqsFlowJob,
        method:'delete',
        params:{...params},
        url_2:'outside',
    })
}
// 查询当前流程任务详情-通过当前流程任务id
export function queryJobByJobId(params){
    return axios({
        url: assessCheckApi.queryJobByJobId,
        method:'get',
        params:{...params},
        url_2:'outside',
    })
}
// 自定义-退回环节
export function returnUpperzdyFlowJob(data){
    return axios({
        url: assessCheckApi.returnUpperzdyFlowJob,
        method:'post',
        data:{...data},
        url_2:'outside',
    })
}
// 流程监控-分页查询
export function flowJkPage(params){
    return axios({
        url: assessCheckApi.flowJkPage,
        method:'get',
        params:{...params},
        url_2:'outside',
    })
}
// 下载个人签名
export function downMyQm(params){
    return axios({
        url: assessCheckApi.downMyQm,
        method:'get' ,
        params:{...params},
        url_1:'outside',
        responseType: 'arraybuffer'
    })
}

// 查询报销大类模板
export function selectdllist(params){
    return axios({
        url: assessCheckApi.selectdllist,
        method:'get',
        params:{...params},
        url_2:'outside',
    })
}
// 查询报销小类模板-根据大类id
export function selectxllist(params){
    return axios({
        url: assessCheckApi.selectxllist,
        method:'get',
        params:{...params},
        url_2:'outside',
    })
}
// 内控-报销明细项目-添加
export function mxAdd(data){
    return axios({
        url: assessCheckApi.mxAdd,
        method:'post',
        data:{...data},
        url_2:'outside',
    })
}
// 内控-报销明细项目-通过id删除
export function mxDelte(params){
    return axios({
        url: assessCheckApi.mxDelte,
        method:'delete',
        params:{...params},
        url_2:'outside',
    })
}
// 内控-报销明细项目-编辑
export function mxEdit(data){
    return axios({
        url: assessCheckApi.mxEdit,
        method:'put',
        data:{...data},
        url_2:'outside',
    })
}
// 内控-报销明细项目-通过id查询
export function selectbxmx(params){
    return axios({
        url: assessCheckApi.selectbxmx,
        method:'get',
        params:{...params},
        url_2:'outside',
    })
}
// 查询当前申请人部门的项目预算指标
export function selectXmyszb(params){
    return axios({
        url: assessCheckApi.selectXmyszb,
        method:'get',
        params:{...params},
        url_2:'outside',
    })
}
